import request from "@/utils/request.js"

/**
 * 分页查询
 * @param data
 * @returns {Promise<axios.AxiosResponse<any>>}
 */
export const queryLoginLogPage = (data) => {
  return request.post("/admin/loginlog/page", data)
}

/**
 * 查询
 * @param data
 * @returns {Promise<axios.AxiosResponse<any>>}
 */
export const queryLoginLogById = (data) => {
  return request.get("/admin/loginlog/" + data)
}

/**
 * 删除
 * @param data
 * @returns {Promise<axios.AxiosResponse<any>>}
 */
export const removeLoginLog = (data) => {
  return request.delete("/admin/loginlog", {data})
}

/**
 * 导出
 * @param data
 * @returns {Promise<axios.AxiosResponse<any>>}
 */
export const exportLoginLog = (data) => {
  return request.post("/admin/loginlog/export", data, {responseType: 'blob'})
}
